package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.easy.common.enumbean.OrderStatus;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("orders")
public class Order extends BaseBean implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer customerId;
    private Integer userId;
    private LocalDateTime orderTime;
    private BigDecimal totalAmount;
    private OrderStatus orderStatus;
    private LocalDateTime dealTime;
    private String contractFilename;
    private String contractPath;

    @TableField(exist = false)
    private OrderItem orderItem;//订单明细
}